The Gray-code Graph of t-ary Trees Using RD-sequences Is Hamiltonian∗
نویسندگان
چکیده
Usually, t-ary trees are encoded to integer sequences as their representation. It has been shown that the right-distance sequences (or RD-sequence for short) are concise representations of t-ary trees and are suitable for the usage of loopless Gray-code enumeration. For n, t 2, the RD-representation graph, denoted as RDt n, is a graph whose vertices are the RD-sequences of t-ary trees with n internal nodes, and two vertices are joined by an edge if and only if their RD-sequences differ in exactly one position. From the definition, a Gray-code enumeration for t-ary trees can be implemented by finding a Hamiltonian path in RDt n. In [24], the authors have proposed an algorithm to find a Hamiltonian path in RDt n. In this paper, we further determine some basic graph parameters of RDt n, including order, size, degrees of vertices, eccentricity, diameter, radius, center, and median. Moreover, we show that every RD-representation graph is Hamiltonian, i.e., it contains a simple cycle passing through all vertices of RDt n. ∗This research was partially supported by National Science Council under the Grants NSC95-2221-E-260024. 1 . Introduction An easy way to represent combinatorial objects is the use of integer sequences encoding. To generate objects efficiently, enumerating algorithms are postulated to run in a constant time for each generation under the worst case, and so that the number of changes between two consecutive sequences can be bounded by a constant. A recommendable choice for designing an enumerating algorithm is the use of a technique called loopless (i.e., algorithm involves no recursion and, after initialization, uses only “if-then-else” statements and assignments) [2, 23] and such that the output sequences result in a Gray-code order [18]. A Gray-code graph of objects is a graph containing all objects of the same size as its vertices and such that two vertices are connected by an edge if their corresponding sequences differ in exactly one position. Consequently, an implementation of Gray-code enumeration for objects can be done by finding a Hamiltonian path in the Gray-code graph. Till now, many researches have been devoted to the loopless Gray-code enumeration of biThe 24th Workshop on Combinatorial Mathematics and Computation Theory
منابع مشابه
The Rotation Graph of k - ary Trees is Hamiltonian ∗
In this paper we show that the graph of k-ary trees, connected by rotations, contains a Hamilton cycle. Our proof is constructive and thus provides a cyclic Gray code for k-ary trees. Furthermore, we identify a basic building block of this graph as the 1-skeleton of the polytopal complex dual to the lower faces of a certain cyclic polytope.
متن کاملParallel Generation of t-ary Trees
A parallel algorithm for generating t-ary tree sequences in reverse B-order is presented. The algorithm generates t-ary trees by 0-1 sequences, and each 0-1 sequences is generated in constant average time O(1). The algorithm is executed on a CREW SM SIMD model, and is adaptive and cost-optimal. Prior to the discussion of the parallel algorithm a new sequential generation with O(1) average time ...
متن کاملA Loopless Algorithm to Generate Gray-codes of t-ary Trees Using RD-sequences∗
The right-distance sequences (or RDsequence for short) are concise representations of t-ary trees. A loopless algorithm is an algorithm that involves no recursion and uses only comparison statements and assignment statements to enumerate combinatorial objects. Hence, a loopless algorithm guarantees to run in a constant time for each generation of object. In this paper, we present a loopless alg...
متن کاملRanking and Unranking of t-Ary Trees Using RD-Sequences
In this paper, we introduce a concise representation, called right-distance sequences (or RD-sequences for short), to describe all t-ary trees with n internal nodes. A result reveals that there exists a close relationship between the representation and the well-formed sequences suggested by Zaks [Lexicographic generation of ordered trees, Theoretical Computer Science 10 (1980) 63–82]. Using a c...
متن کاملRanking and Unranking of t-ary Trees Using the Right Distance Representation
In this paper, we introduce a concise representation, called right-distance sequences (or RD-sequences for short), to describe all t-ary trees with n internal nodes. A result reveals that there exists a close relationship between the representation and the well-formated integer sequences suggested by Zaks in 1980. Using recursion tree and its concomitant tables, a systematical way can help us t...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2007